(function (win) {
  // 后台 前端 keycloak ip 统一配置 
  // var backDomain = `http://10.19.151.134`;
  // var frontDomain = `http://10.19.151.131`;
  // var key = `http://10.19.151.133`;

   var backDomain = `http://10.19.151.141`;
   var frontDomain = `http://10.19.151.144`;
   var key = `http://10.19.151.143`;

  //var backDomain = `http://10.19.141.100`;
  //var frontDomain = `http://10.19.141.121`;
  //var key = `http://10.19.141.122`;

  win.ENV = {
    //物理环境配置
    API_DACM: `${backDomain}:29022/DACM`,//web-dacm
    API_DAM: `${backDomain}:29025/DAM`,//#web-dam 后台数据资产服务地址
    API_LOG: `${backDomain}:29525/DATA-SECURITY`,//web-data-security 日志接口服务地址
    API_SJSN: `${frontDomain}:29543`,//web-sjsn-front
    //API_SJSN: `http://localhost:8080`,//web-sjsn-front
    API_SKIN: `${backDomain}:29540`,//web-bcm
    API_USER: `${backDomain}:29544/URAM`,// web-frame  #web-user 后台用户、角色接口服务地址
    
    //测试环境配置  
    // API_DACM: "http://10.19.248.200:31950/DACM",
    // API_DAM: "http://10.19.248.200:32115/DAM",
    // API_LOG: "http://10.19.248.200:32394/DATA-SECURITY",
    // API_SJSN: "http://10.19.248.200:32569",
    // API_SKIN: "http://10.19.248.200:30300",
    // API_USER: "http://10.19.248.200:31165/URAM",
  }

  //添加页面可配置字段js
  var newScript = document.createElement('script')
  var head = document.getElementsByTagName('head')[0];
  newScript.setAttribute('type', 'text/javascript')
  newScript.setAttribute('src', `${frontDomain}:29640/pageData.js`)
  head.appendChild(newScript);
})(window)